<template>
    <h2>欢迎来到这里</h2>
    <h2>{{ sj.params.id }}</h2>
    <hr>
    <h2>{{ count.cs }}</h2>
    <button @click="count.add">+</button>
    <button @click="count.err">-</button>
</template>

<script setup>
import { useRoute } from "vue-router";
import usejiajian from "../hooks/fy"
const count=usejiajian()
const sj=useRoute()
console.log(sj.params.id)
</script>

<style lang="scss" scoped>

</style>